<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>msg</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<%
		String role = (String) session.getAttribute("role");
		session.setAttribute("role","");
		String msg = (String) session.getAttribute("msg");
		session.setAttribute("msg","");
	%>
	<script type="text/javascript" >
		window.alert("<%=msg%>");
		<%	if(role.equals("user")){
				if(msg.equals("注册成功！请登录")){%>
				window.location.href="../express/userlogin.jsp";
			<%}%>
		<%	if(msg.equals("注册失败！请重新注册")){%>
				window.location.href="../express/userreg.jsp";
			<%}%>
		<%	if(msg.equals("注册失败！电话已被注册,请重新注册")){%>
				window.location.href="../express/userreg.jsp";
			<%}%>
		<%}%>
		<%	if(role.equals("clerk")){
				if(msg.equals("注册成功！请等待审核通过")){%>
				window.location.href="../express/clerklogin.jsp";
			<%}%>
		<%	if(msg.equals("注册失败！请重新注册")){%>
				window.location.href="../express/clerkreg.jsp";
			<%}%>
		<%	if(msg.equals("注册失败！电话已被注册,请重新注册")){%>
				window.location.href="../express/clerkreg.jsp";
			<%}%>
		<%}%>
	</script>
  </head>
  
  <body>
  </body>
</html>
